﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.fmtx.Model;

namespace com.fmtx.IDal
{
    public interface IPlace:IBase<Place>
    {
        /// <summary>
        /// 名称是否存在
        /// </summary>
        /// <param name="name"></param>
        /// <returns>存在true，</returns>
        bool IsExists(string name);
        /// <summary>
        /// 通过名称查询景点列表
        /// </summary>
        /// <param name="name">匹配的字符英文亦可</param>
        /// <param name="cityid">城市id</param>
        /// <param name="num">返回个数</param>
        /// <returns></returns>
        List<Place> QueryByName(string name,int cityid, int num);

        /// <summary>
        /// 分页获取城市信息
        /// </summary>
        /// <param name="index"></param>
        /// <param name="size"></param>
        /// <param name="name"></param>
        /// <param name="countryId"></param>
        /// <returns></returns>
        IList<Place> Query(int index, int size, string name, int cityid, out int count);

        /// <summary>
        /// 查询所有的景点只查id及name
        /// </summary>
        /// <returns></returns>
        IList<Place> QueryIdAndName();
    }
}
